package com.thirteen.app.dto;

import com.thirteen.app.entity.Answer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("问题和对应答案类")
public class QuestionAnswerDto implements Serializable {

    @ApiModelProperty(value = "问题id", name = "questionId")
    private Integer questionId;

    @ApiModelProperty(value = "问题类型", name = "questionType")
    private Integer questionType;

    @ApiModelProperty(value = "问题内容", name = "content")
    private String content;

    @ApiModelProperty(value = "题目分析", name = "analysis")
    private String analysis;

    @ApiModelProperty(value = "答案个数", name = "answerCount")
    private Integer answerCount;

    @ApiModelProperty(value = "答案列表", name = "choicesList")
    private List<Answer> choicesList;

    @ApiModelProperty(value = "题目类型名", name = "typeName")
    private String typeName;

    @ApiModelProperty(value = "答案", name = "solution")
    private String solution;//用于向前端传递正确答案
}
